<?php     

echo form_open(current_url()); ?>
<?php echo $custom_error; ?>

                                    <p><label for="contactname">Contactname<span class="required">*</span></label>                                
                                    <input id="contactname" type="text" name="contactname" value="<?php echo set_value('contactname'); ?>"  />
                                    <?php echo form_error('contactname','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="contactaddress">Contactaddress<span class="required">*</span></label>                                
                                    <input id="contactaddress" type="text" name="contactaddress" value="<?php echo set_value('contactaddress'); ?>"  />
                                    <?php echo form_error('contactaddress','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="contactphone">Contactphone<span class="required">*</span></label>                                
                                    <input id="contactphone" type="text" name="contactphone" value="<?php echo set_value('contactphone'); ?>"  />
                                    <?php echo form_error('contactphone','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="contactemail">Contactemail<span class="required">*</span></label>                                
                                    <input id="contactemail" type="text" name="contactemail" value="<?php echo set_value('contactemail'); ?>"  />
                                    <?php echo form_error('contactemail','<div>','</div>'); ?>
                                    </p>
                                    

                                    <p><label for="contactwebsite">Contactwebsite<span class="required">*</span></label>                                
                                    <input id="contactwebsite" type="text" name="contactwebsite" value="<?php echo set_value('contactwebsite'); ?>"  />
                                    <?php echo form_error('contactwebsite','<div>','</div>'); ?>
                                    </p>
                                    
<p>
        <?php echo form_submit( 'submit', 'Submit'); ?>
</p>

<?php echo form_close(); ?>
